package com.xydtech.ecard.merchant.service.impl;

import com.xydtech.common.annotation.DataScope;
import com.xydtech.ecard.merchant.domain.EcardBranchMerchant;
import com.xydtech.ecard.merchant.domain.EcardYSQMapInfo;
import com.xydtech.ecard.merchant.mapper.EcardYSQMapInfoMapper;
import com.xydtech.ecard.merchant.service.IEcardYSQMapInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <dd>描述: ~ 客户分布展示在百度地图Service业务层处理</dd>
 * <dd>创建时间：  15:13 2024/2/4</dd>
 * <dd>创建人： yuzhiguo</dd>
 * <dt>版本历史: </dt>
 * Date         Author         Version     Description
 * ------------------------------------------------------------------
 * 2024/2/4     yuzhiguo         1.0        1.0 Version
 */
@Service
public class EcardYSQMapInfoServiceImpl implements IEcardYSQMapInfoService {

    @Autowired
    private EcardYSQMapInfoMapper ecardYSQMapInfoMapper;

    /**
     * 云商圈获取客户分布展示在地图上
     * @param ecardYSQMapInfo
     * @return
     */
    @Override
    @DataScope(userAlias = "c", deptAlias = "b")
    public List<EcardYSQMapInfo> getCustDistribution(EcardYSQMapInfo ecardYSQMapInfo) {
        return ecardYSQMapInfoMapper.getCustDistribution(ecardYSQMapInfo);
    }

    /**
     * 云商圈获取网格建档和拜访信息
     * @param ecardBranchMerchant
     * @return
     */
    @Override
    public List<EcardBranchMerchant> selectYSQBranchMerchantInfo(EcardBranchMerchant ecardBranchMerchant) {
        return ecardYSQMapInfoMapper.selectYSQBranchMerchantInfo(ecardBranchMerchant);
    }
}
